package com.kin207.netty.listener;

import java.util.Map;

public class ListenerConfig {
	private String name; 
	private String describe;
	private Map<String,String> params;
	
	public ListenerConfig() {
		super();
	}

	public ListenerConfig(Map<String, String> params) {
		super();
		this.params = params;
	}
	
	public ListenerConfig(String name, String describe, Map<String, String> params) {
		super();
		this.name = name;
		this.describe = describe;
		this.params = params;
	}

	public String getParam(String key) {
		if(params==null){
			return null;
		}
		return params.get(key);
	}
	
	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
	
}
